//
//  zhikoutwoPageTableViewCell.m
//  UI_HLJ_Frame
//
//  Created by  毕宏伟 on 15/7/6.
//  Copyright (c) 2015年 毕宏伟. All rights reserved.
//

#import "zhikoutwoPageTableViewCell.h"

#define WIDHT self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation zhikoutwoPageTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self =[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.fuwuLabel =[[UILabel alloc]init];
//        self.fuwuLabel.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:self.fuwuLabel];
        [_fuwuLabel release];
        
//        self.fuwutextLabel = [[UILabel alloc]init];
//        self.fuwutextLabel.backgroundColor = [UIColor yellowColor];
//        [self.contentView addSubview:self.fuwutextLabel];
//        [_fuwutextLabel release];
        
        self.paisheLabel =[[UILabel alloc]init];
//        self.paisheLabel.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.paisheLabel];
        [_paisheLabel release];
        
        self.paishetextLabel = [[UILabel alloc]init];
//        self.paishetextLabel.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.paishetextLabel];
        // 多行显示
        self.paishetextLabel.numberOfLines = 0;
        // 字体大小14
        self.paishetextLabel.font = [UIFont systemFontOfSize:14];
        [_paisheLabel release];
        
        
        self.fuzhuangLabel =[[UILabel alloc]init];
//        self.fuzhuangLabel.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.fuzhuangLabel];
        [_fuzhuangLabel release];
        
        self.fuzhuangtextLabel = [[UILabel alloc]init];
//        self.fuzhuangtextLabel.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.fuzhuangtextLabel];
        self.fuzhuangtextLabel.font = [UIFont systemFontOfSize:14];
        self.fuwutextLabel.numberOfLines = 0;
        [_fuzhuangLabel release];
        
        self.changjingLabel =[[UILabel alloc]init];
//        self.changjingLabel.backgroundColor =[UIColor greenColor];
        [self.contentView addSubview:self.changjingLabel];
        [_changjingLabel release];
        
        self.changjingtextLabel = [[UILabel alloc]init];
//        self.changjingtextLabel.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:self.changjingtextLabel];
        self.changjingtextLabel.font = [UIFont systemFontOfSize:14];
        [_changjingtextLabel release];
        
        self.chengpinLabel = [[UILabel alloc]init];
//        self.chengpinLabel.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview: self.chengpinLabel];
        [_chengpinLabel release];
        
        self.chengpintextLabel = [[UILabel alloc]init];
//        self.chengpintextLabel.backgroundColor =[UIColor blueColor];
        [self.contentView addSubview:self.chengpintextLabel];
        self.chengpintextLabel.font = [UIFont systemFontOfSize:14];
        [_chengpintextLabel release];
        
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.fuwuLabel.frame = CGRectMake(0, 10, 150, 20);
//    self.fuwutextLabel.frame =CGRectMake(180, 10, 100, 20);
    
    self.paisheLabel.frame =CGRectMake(0, 40, 150, 20);
    self.paishetextLabel.frame = CGRectMake(10, 70, WIDHT / 1.06, 40);
    
    self.fuzhuangLabel.frame =CGRectMake(0, 140, 150, 20);
    self.fuzhuangtextLabel.frame =CGRectMake(10, 170, WIDHT / 1.06, 50);
    self.fuzhuangtextLabel.numberOfLines = 0;
    
    self.changjingLabel.frame = CGRectMake(0, 230, 150, 30);
    self.changjingtextLabel.frame =CGRectMake(10, 270, WIDHT / 1.06, 220);
    self.changjingtextLabel.numberOfLines =0;
//    [self.changjingtextLabel sizeToFit];
    
    self.chengpinLabel.frame =CGRectMake(0, 500, 150, 30);
    self.chengpintextLabel.frame =CGRectMake(10, 540, WIDHT / 1.06, 300);
    self.chengpintextLabel.numberOfLines =0;
//    [self.chengpintextLabel sizeToFit];
    
    
}






- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
